package src.lab02.test04;

import java.util.Scanner;

/**
 * Created by 林云志 on 2017/10/14.
 */
public class Worker {

        Scanner worker = new Scanner(System.in);
        String name;
        String number;
        double salary;
        double addsalary;
        double pay;

    String getName (){
        System.out.println("请输入员工姓名");
     name = worker.next();
    return name;
    }
    String getNumber(){
        System.out.println("请输入员工的号码");
        number = worker.next();
        return number;
    }
    double getSalary(){
        System.out.println("请输入员工的基本工资");
        salary = worker.nextInt();
        return salary;
    }
    double pay(){
        pay = salary*1.1;
        return pay;
    }
    double Addsalary(){

        addsalary = pay - salary;
        return addsalary;
    }

}
